import { LoaderFunctionArgs } from 'react-router'; import { LocalAuthority, LocationsResponse, RecyclingMeta, Material } from '@/types/locatorApi'; export interface DeferredMaterialLoaderResponse { localAuthority: Promise; locations: Promise; tip: Promise; material: Promise; } export interface AwaitedMaterialLoaderResponse { localAuthority: LocalAuthority; locations: LocationsResponse; tip?: RecyclingMeta; material: Material; } export default function materialLoader({ request, params, }: LoaderFunctionArgs): Promise<{ localAuthority: Promise; locations: Promise; tip: Promise; material: Promise; }>;